//
//  Pair.swift
//  
//
//  Created by Jiang Chencheng on 2024/9/9.
//

import Vapor

struct PairReq: Content {
    var code: String
}

struct WriteDiaryReq: Content {
    var content: String
}


struct DeleteDiaryReq: Content {
    var id: UUID
}


struct UploadPhotoReq: Content {
    var name: String?
    var url: String
}


struct DeletePhotoReq: Content {
    var id: UUID
}




struct RewardResp: Content {
    
    enum RewardType: Int, Codable {
        case star
        case hot
        case energy
    }
    
    struct Reward: Content {
        var value: UInt
        var type: RewardType
    }
    var reward: Reward
    var room: RoomDTO
}
